package cn.leedsoft.and.crimeintent.controller.photo_gallery;

import android.app.SearchManager;
import android.content.Intent;
import android.support.v4.app.Fragment;
import android.widget.Toast;
import cn.leedsoft.and.crimeintent.common.SingleFragmentActivity;

/**
 * Created by leeds on 2016/8/23 23:10.
 */
public class PhotoGalleryActivity extends SingleFragmentActivity {
    private static final String TAG = PhotoGalleryFragment.class.getSimpleName();

    @Override
    protected Fragment newFragment() {
        return PhotoGalleryFragment.newInstance();
    }

    @Override
    protected void onNewIntent(Intent intent) {
        super.onNewIntent(intent);

//        if(Intent.ACTION_SEARCH.equals(intent.getAction())) {
//            String searchKey = intent.getStringExtra(SearchManager.QUERY);
//            Toast.makeText(this, "您搜索的是：" + searchKey, Toast.LENGTH_SHORT).show();
//        }
    }
}
